﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000491 RID: 1169
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterTreasureDungeonScRsp : IMessage<EnterTreasureDungeonScRsp>, IMessage, IEquatable<EnterTreasureDungeonScRsp>, IDeepCloneable<EnterTreasureDungeonScRsp>, IBufferMessage
	{
		// Token: 0x17000F0E RID: 3854
		// (get) Token: 0x060034A7 RID: 13479 RVA: 0x00090C3F File Offset: 0x0008EE3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterTreasureDungeonScRsp> Parser
		{
			get
			{
				return EnterTreasureDungeonScRsp._parser;
			}
		}

		// Token: 0x17000F0F RID: 3855
		// (get) Token: 0x060034A8 RID: 13480 RVA: 0x00090C46 File Offset: 0x0008EE46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterTreasureDungeonScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000F10 RID: 3856
		// (get) Token: 0x060034A9 RID: 13481 RVA: 0x00090C58 File Offset: 0x0008EE58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterTreasureDungeonScRsp.Descriptor;
			}
		}

		// Token: 0x060034AA RID: 13482 RVA: 0x00090C5F File Offset: 0x0008EE5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterTreasureDungeonScRsp()
		{
		}

		// Token: 0x060034AB RID: 13483 RVA: 0x00090C68 File Offset: 0x0008EE68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterTreasureDungeonScRsp(EnterTreasureDungeonScRsp other) : this()
		{
			this.eDPHOKHAPIK_ = ((other.eDPHOKHAPIK_ != null) ? other.eDPHOKHAPIK_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060034AC RID: 13484 RVA: 0x00090CB4 File Offset: 0x0008EEB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterTreasureDungeonScRsp Clone()
		{
			return new EnterTreasureDungeonScRsp(this);
		}

		// Token: 0x17000F11 RID: 3857
		// (get) Token: 0x060034AD RID: 13485 RVA: 0x00090CBC File Offset: 0x0008EEBC
		// (set) Token: 0x060034AE RID: 13486 RVA: 0x00090CC4 File Offset: 0x0008EEC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TreasureDungeonLevel EDPHOKHAPIK
		{
			get
			{
				return this.eDPHOKHAPIK_;
			}
			set
			{
				this.eDPHOKHAPIK_ = value;
			}
		}

		// Token: 0x17000F12 RID: 3858
		// (get) Token: 0x060034AF RID: 13487 RVA: 0x00090CCD File Offset: 0x0008EECD
		// (set) Token: 0x060034B0 RID: 13488 RVA: 0x00090CD5 File Offset: 0x0008EED5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060034B1 RID: 13489 RVA: 0x00090CDE File Offset: 0x0008EEDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterTreasureDungeonScRsp);
		}

		// Token: 0x060034B2 RID: 13490 RVA: 0x00090CEC File Offset: 0x0008EEEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterTreasureDungeonScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.EDPHOKHAPIK, other.EDPHOKHAPIK) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060034B3 RID: 13491 RVA: 0x00090D3C File Offset: 0x0008EF3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.eDPHOKHAPIK_ != null)
			{
				num ^= this.EDPHOKHAPIK.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060034B4 RID: 13492 RVA: 0x00090D91 File Offset: 0x0008EF91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060034B5 RID: 13493 RVA: 0x00090D99 File Offset: 0x0008EF99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060034B6 RID: 13494 RVA: 0x00090DA4 File Offset: 0x0008EFA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.eDPHOKHAPIK_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.EDPHOKHAPIK);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060034B7 RID: 13495 RVA: 0x00090E00 File Offset: 0x0008F000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.eDPHOKHAPIK_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EDPHOKHAPIK);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060034B8 RID: 13496 RVA: 0x00090E58 File Offset: 0x0008F058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterTreasureDungeonScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.eDPHOKHAPIK_ != null)
			{
				if (this.eDPHOKHAPIK_ == null)
				{
					this.EDPHOKHAPIK = new TreasureDungeonLevel();
				}
				this.EDPHOKHAPIK.MergeFrom(other.EDPHOKHAPIK);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060034B9 RID: 13497 RVA: 0x00090EC0 File Offset: 0x0008F0C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060034BA RID: 13498 RVA: 0x00090ECC File Offset: 0x0008F0CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.eDPHOKHAPIK_ == null)
					{
						this.EDPHOKHAPIK = new TreasureDungeonLevel();
					}
					input.ReadMessage(this.EDPHOKHAPIK);
				}
			}
		}

		// Token: 0x040014AA RID: 5290
		private static readonly MessageParser<EnterTreasureDungeonScRsp> _parser = new MessageParser<EnterTreasureDungeonScRsp>(() => new EnterTreasureDungeonScRsp());

		// Token: 0x040014AB RID: 5291
		private UnknownFieldSet _unknownFields;

		// Token: 0x040014AC RID: 5292
		public const int EDPHOKHAPIKFieldNumber = 1;

		// Token: 0x040014AD RID: 5293
		private TreasureDungeonLevel eDPHOKHAPIK_;

		// Token: 0x040014AE RID: 5294
		public const int RetcodeFieldNumber = 12;

		// Token: 0x040014AF RID: 5295
		private uint retcode_;
	}
}
